import request from '@/utils/request'

// 获取部门列表
export function getDepartments(data) {
    return request({
        url: '/api/System/Department',
        method: 'get',
        params: data
      })
}

// 添加部门
export function addDepartment(data) {
    return request({
        url: '/api/System/Department',
        method: 'post',
        params: data
    })
}

// 修改部门
export function updateDepartment(data) {
    return request({
        url: '/api/System/Department',
        method: 'put',
        params: data
    })
}

// 删除部门
export function deleteDepartment(data) {
    return request({
        url: '/api/System/Department',
        method: 'delete',
        params: data
    })
}